#include "SceneContainerPack.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "deprecated/CCDeprecated.h"
#include "ui/UIHelper.h"
#include "base/CCConsole.h"
#include "logic/LogicData.h"

USING_NS_CC;
using namespace ui;

CSceneContainerPack::CSceneContainerPack(void)
{
	m_ContainerPack = CLogicData::GetInstance()->GetOneself()->GetContainerPack();
}


CSceneContainerPack::~CSceneContainerPack(void)
{
}

bool CSceneContainerPack::init() {
	// 1. super init first
    if ( !CSceneBase::init() )
    {
        return false;
    }
    
	m_Pack = CSLoader::createNode("Inventory.csb");
	
	//ui::Button* tLoginB = (ui::Button*)ui::Helper::seekWidgetByTag((cocos2d::ui::Widget*)m_Pack, 93);
	//tLoginB->addTouchEventListener(this, toucheventselector(CSceneLogin::onLogin));

    addChild(m_Pack);

    return true;
}

/*
void CSceneContainerPack::onEnter() {
	cocos2d::Scene::onEnter();
}
void CSceneContainerPack::onExit() {
	cocos2d::Scene::onExit();
}

void CSceneContainerPack::update(float delta) {
	cocos2d::Scene::update(delta);
}
*/
